HAL SPDIFRX macros migration ¶
This section provides information about the HAL SPDIFRX macro migration.
HAL SPDIFRX interrupt clear flag ¶
|
HAL1 |
HAL2 |
|---|---|
#define __HAL_SPDIFRX_CLEAR_IT(__HANDLE__, __IT_CLEAR__)
|
__STATIC_INLINE void HAL_SPDIFRX_ClearFlag(hal_spdifrx_handle_t *hspdifrx, uint32_t flag)
|
Related concept:
HAL SPDIFRX disable interrupt ¶
|
HAL1 |
HAL2 |
|---|---|
#define __HAL_SPDIFRX_DISABLE_IT(__HANDLE__, __INTERRUPT__)
|
__STATIC_INLINE void HAL_SPDIFRX_DisableIT(hal_spdifrx_handle_t *hspdifrx, uint32_t interrupt)
|
Related concept:
HAL SPDIFRX enable interrupt ¶
|
HAL1 |
HAL2 |
|---|---|
#define __HAL_SPDIFRX_ENABLE_IT(__HANDLE__, __INTERRUPT__)
|
__STATIC_INLINE void HAL_SPDIFRX_EnableIT(hal_spdifrx_handle_t *hspdifrx, uint32_t interrupt)
|
Related concept:
HAL SPDIFRX get flag ¶
|
HAL1 |
HAL2 |
|---|---|
#define __HAL_SPDIFRX_GET_FLAG(__HANDLE__, __FLAG__)
|
__STATIC_INLINE uint32_t HAL_SPDIFRX_IsActiveFlag(const hal_spdifrx_handle_t *hspdifrx, uint32_t flag)
|
Related concept:
HAL SPDIFRX get interrupt source ¶
|
HAL1 |
HAL2 |
|---|---|
#define __HAL_SPDIFRX_GET_IT_SOURCE(__HANDLE__, __INTERRUPT__)
|
__STATIC_INLINE uint32_t HAL_SPDIFRX_IsEnabledIT(const hal_spdifrx_handle_t *hspdifrx, uint32_t interrupt)
|
Related concept:
HAL SPDIFRX idle state ¶
|
HAL1 |
HAL2 |
|---|---|
#define __HAL_SPDIFRX_IDLE(__HANDLE__)
|
In HAL2, this macro is removed. It was used internally in HAL1 and did not affect user-level operations. |
HAL SPDIFRX receive state ¶
|
HAL1 |
HAL2 |
|---|---|
#define __HAL_SPDIFRX_RCV(__HANDLE__)
|
In HAL2, this macro is removed. It was used internally in HAL1 and did not affect user-level operations. |
HAL SPDIFRX sync state ¶
|
HAL1 |
HAL2 |
|---|---|
#define __HAL_SPDIFRX_SYNC(__HANDLE__)
|
In HAL2, this macro is removed. It was used internally in HAL1 and did not affect user-level operations. |
HAL SPDIFRX reset handle state ¶
|
HAL1 |
HAL2 |
|---|---|
#define __HAL_SPDIFRX_RESET_HANDLE_STATE(__HANDLE__)
|
Removed: use HAL_SPDIFRX_DeInit() instead when you need to reset all states. |